package com.ldatum.crm.serviceImpl;

import java.util.List;

import com.ldatum.crm.dao.TDepartmentDao;
import com.ldatum.crm.daoImpl.TDepartmentDaoImpl;
import com.ldatum.crm.domain.TDepartment;
import com.ldatum.crm.service.TDepartmentService;

public class TDepartmentServiceImpl implements TDepartmentService {

	TDepartmentDao departmentDao = new TDepartmentDaoImpl();
	@Override
	public List<TDepartment> list() {
		
		return departmentDao.list();
	}

	@Override
	public void save(TDepartment department) throws Exception {
		departmentDao.save(department);
	}

	@Override
	public int deletes(String ids) throws Exception {
		return departmentDao.deletes(ids);
	}

}
